package com.zhangxin.designmode.fiveprinciple.liskovsubstitutionprinciple.before;

import sun.net.www.http.HttpClient;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * @author zhangxin
 * @date 2022/4/9
 */
public class Transporter {
    private HttpClient httpClient;

    public Transporter(HttpClient httpClient) {
        this.httpClient = httpClient;
    }

    public HttpServletResponse sendRequest(HttpServletRequest request) {
        //...use httpClient to send request
        return null;
    }
}
